import request from '@/config/axios'

//  VO
export interface OfficeVO {
  //   id: number // 主键ID
}

// onlyoffice API
export const OnlyOfficeApi = {
  //getConfig
  //   getConfig: async (params: any) => {
  //     return await request.get({ url: `/dev/office/getConfig`, params })
  //   }
  getConfig: async (id, type) => {
    return await request.get({ url: `/infra/office/getConfig?fileId=${id}&fileType=${type}` })
  },
  getConfigNew: async (id, type) => {
    return await request.get({ url: `/infra/office/getConfigNew?fileId=${id}&fileType=${type}` })
  },
}
